@import "./base.scss";

body, h1, h2, h3, h4, h5, h6, ul, ol, li, p, input, option, textarea, menu, dl, dd, dt, table, tr, th, td, thead, tbody, pre, code {
  margin: 0;
  padding: 0;
}

* {
  &::selection {
    color: #333;
    background-color: #BAD5FA;
    text-shadow: none;
  }
}

pre {
  display: flex;

  > code {
    box-sizing: border-box;
    width: 100%;
    padding: 20px;
    display: inline-block;
    white-space: pre-wrap;
  }
}

html,
body {
  user-select: none;
  font-family: "WH Love", 'Microsoft Yahei', Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
  box-sizing: border-box;
  background-color: #fff;
  width: 100vw;
  font-size: 14px;
  transform-origin: center center;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

ul,
ol {
  list-style: none;
}

img,
input,
table,
tr,
th,
td,
thead,
tbody {
  border: none;
  box-sizing: border-box;
  border-spacing: 0;
}

a {
  text-decoration: none;
}

i,
em {
  font-style: normal;
}

textarea {
  border: none;
  resize: none;

  &::-webkit-input-placeholder {
    color: #abb4c3;
  }
}

.float_l {
  float: left;
}

.float_r {
  float: right;
}

.tal {
  text-align: left;
  white-space: nowrap;
}

.tac {
  text-align: center;
}

.show {
  display: block !important;
}

.hide {
  display: none;
}

.hides {
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  overflow: hidden;
}

.clearfix:after {
  content: "";
  display: block;
  overflow: hidden;
  font-size: 0;
  height: 0;
  clear: both;
}

.img {
  width: 100%;
  height: 100%;
  float: left;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input {
  &::-webkit-input-placeholder {
    color: #abb4c3;
  }
}

#app {
  width: 100%;
  height: 100%;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
  background-color: transparent;
  border-radius: 10px;
  z-index: 999;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: transparent;
  border-radius: 0;
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 10px;
}

.rpa-scroll-bar {
  transition: transform 0.3s, opacity 0.3s;

  &.enter {
    transform: translateX(0);
    opacity: 1;
  }

  &.leave {
    transform: translateX(100%);
    opacity: 0;
  }
}
